package com.example.album;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Router {
    @RequestMapping("/")
    public String toLogin()
    {
        return "Login";
    }
    @RequestMapping("/main")
    public String toMain()
    {
        return "Main";
    }
    @RequestMapping("/userinfo")
    public String toUserinfo()
    {
        return "Userinfo";
    }
    @RequestMapping("/createalbum")
    public String toCreateAlbum()
    {
        return "CreateAlbum";
    }
    @RequestMapping("/album/{albumId}")
    public String toAlbum()
    {
        return "Album";
    }

    @RequestMapping("/albummanagement/{albumId}")
    public String toAlbumManamagement()
    {
        return "AlbumManagement";
    }

    @RequestMapping("/admin")
    public String toAdmin()
    {
        return "Admin";
    }
}
